package com.mk.service;

import com.mk.base.service.IBaseService;
import com.mk.model.entity.Role;
import com.mk.model.request.RoleRequest;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 3:45 PM 3/13/18
 */
public interface IRoleService extends IBaseService<Role> {

    Role saveRole(RoleRequest request);

    Boolean updateRole(RoleRequest request);

    Boolean deleteRole(Long id);

    Role get(Long id);

    List<Role> findByUserId(Long userId);

    List<Role> findAll();

    List<Role> getByUsername(String username);
}
